package com.patterns.factory.LazyFactory;

/**
 * Created by Xiao Yiyun on 2017/4/14.
 */
public class Client {

    static Prodect p;

    public static void main(String[] args) {

        try {
            Prodect prodect1 = ProductFactory.create("Prodect1");
            prodect1.method();
            Prodect prodect2 = ProductFactory.create("Prodect2");
            prodect2.method();
            Prodect prodect3 = ProductFactory.create("Prodect1");
            prodect3.method();
        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
